/**
 * 
 */
package name.webdizz.gadget.four.envelope.client;

import com.google.gwt.gadgets.client.StringPreference;
import com.google.gwt.gadgets.client.UserPreferences;
import com.google.gwt.gadgets.client.UserPreferences.PreferenceAttributes.Options;

/**
 * This interface provides abilities to access User Preferences of the gadget.
 * 
 * @author Izzet_Mustafayev
 * 
 */
public interface EnvelopePreferences extends UserPreferences {

	/**
	 * Retrieves username.
	 * 
	 * @return the user name
	 */
	@PreferenceAttributes(options = Options.HIDDEN)
	StringPreference username();

	/**
	 * Retrieves user password.
	 * 
	 * @return the user password
	 */
	@PreferenceAttributes(options = Options.HIDDEN)
	StringPreference password();

	/**
	 * Retrieves the API keyю
	 * 
	 * @return the API key
	 */
	@PreferenceAttributes(options = Options.HIDDEN, default_value = "a367199728")
	StringPreference apiKey();

	/**
	 * Retrieves base service URL.
	 * 
	 * @return base service URL
	 */
	@PreferenceAttributes(options = Options.HIDDEN, default_value = "https://www.4konverta.com/data/")
	StringPreference baseUrl();

	/**
	 * Retrieves execution URL.
	 * 
	 * @return the execution URL
	 */
	@PreferenceAttributes(options = Options.HIDDEN, default_value = "/execution/")
	StringPreference executionUrl();

	/**
	 * Retrieves the daily expense URL.
	 * 
	 * @return the daily expense URL.
	 */
	@PreferenceAttributes(options = Options.HIDDEN, default_value = "/dailyExpense/")
	StringPreference dailyExpenseUrl();

	/**
	 * Retrieves the goal credit URL.
	 * 
	 * @return the goal credit URL.
	 */
	@PreferenceAttributes(options = Options.HIDDEN, default_value = "/actualGoalCredit/")
	StringPreference goalCredit();
}
